package com.soboot.system.feign;

import com.soboot.response.Result;
import com.soboot.system.feign.factory.UserInfoFeignFactory;
import com.soboot.system.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="ot-service-system",fallbackFactory = UserInfoFeignFactory.class)
public interface UserInfoFeignClient {

    @GetMapping("/login/username/{username}")
    Result<UserInfoVO> loginByUsername(@PathVariable("username") String username);
}
